Skip to content

Workflow scans use explicit concurrency and token scopes - #1842

Merged
zlareb1 merged 10 commits into
mainfrom
fix/workflow-concurrency-alerts
Dec 1, 2026
Merged

zlareb1 merged 10 commits into
mainfrom
fix/workflow-concurrency-alerts

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Closes: #1841
Closes: #1844

Changelog category

  • CI Fix or Improvement

Why

Six workflows can run several copies for the same pull request. A newer run supersedes earlier work on that pull request. The extended CodeQL scan and publish jobs share their analysis steps and declare repository access directly on the jobs that use it. The TypeScript API report and Rust advisory check have explicit job display names.

Dependency review verifies the Maven and Rust inputs when GitHub reports a missing head snapshot. Workflow pull requests check the link inventory and trusted install redirects. Push and scheduled runs crawl the public documentation URLs.

Scope and risk

The SDK API checks, dependency graph workflows, Rust advisory check and external documentation link check use the main CI concurrency pattern. Pull requests group by workflow and PR ref. Push and scheduled runs group by workflow and commit, with running jobs allowed to finish. The extended CodeQL PR job has read access and reports findings in its run summary. The default-branch job can also upload SARIF, which requires security-events: write.

Compatibility, rollout and rollback

  • Wire changes and operator steps: none.
  • Reverting restores the previous concurrency and reusable workflow definitions.

Tests

  • The pinned zizmor auditor clears twelve findings across concurrency, permissions, same-repository workflow calls and job naming and reports zero new findings.

  • Workflow syntax and shell checks pass with jactionlint and ShellCheck. A parsed YAML comparison confirms the event guards, permission scopes, language matrix and analysis settings.

  • Local format, lint and type checks pass.

  • The workflow audit tests and Rust dependency snapshot tests pass.

  • Dependency review regression tests pass, and replaying GitHub’s responses for both pull requests reports unchanged snapshot inputs and zero blocking advisories.

AI assistance in the code

  • AI-generated (Codex). The before and after audit, parsed YAML comparison and workflow lint checked the workflow changes.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local format, lint, type checks and focused tests pass.
  • Commits are signed off (git commit -s).

Note

Medium Risk
Changes CI orchestration and dependency-review fail-open behavior when snapshots are missing; incorrect Compare/path logic could block or greenlight PRs inappropriately, but production runtime code is unaffected.

Overview
Adds concurrency to several CI workflows (Go/Rust/TS API checks, dependency graphs, Rust advisories, external links, Maven graph) so PR runs cancel in-progress duplicates and push/scheduled runs group by commit SHA.

CodeQL extended stops using a separate reusable workflow: scan/publish jobs now share inlined steps via YAML anchors, with explicit contents: read on PR scans and security-events: write only on default-branch SARIF upload.

Dependency review no longer hard-fails when GitHub reports a missing head dependency snapshot. It still blocks incomplete snapshots, but for the specific “no snapshot for head SHA” case it uses the Compare API to ensure Maven/Rust snapshot inputs are unchanged (with an exception for concurrency-only edits to submission workflows).

External documentation links on pull requests limit checks to link inventory and VS Code redirect validation against the base branch; full public URL crawling and step-summary reporting run only on push/schedule.

Unit tests cover the new missing-snapshot verification paths.

Reviewed by Cursor Bugbot for commit f68f489. Bugbot is set up for automated code reviews on this repo. Configure here.

Group pull request checks by workflow and ref, and keep distinct commit runs independent.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Share the scanner steps in one workflow and grant SARIF upload access to the default-branch job.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 1, 2026 4:23am UTC
loom-telemetry Ready Ready Preview Dec 1, 2026 4:23am UTC

Request Review

…ncy-alerts

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ncy-alerts

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Label the jobs in audit reports and group Rust advisory runs by pull request or commit.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ncy-alerts

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
GitHub returns the static dependency diff alongside a missing-head warning. Verify that Maven and Rust snapshot inputs are unchanged before acting on that diff.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ation

Live link checks cover the published documentation on pushes and scheduled runs. Pull requests check the candidate link inventory and the trusted install redirects.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The Rust dependency workflow runs the snapshot tests before resolving Cargo dependencies.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Include the checkout root when checking input paths for the Rust workflow’s Python commands.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant